class Datedetails {
  Data? data;
  int? code;
  String? msg;
  int? time;
  int? usage;
  String? log_id;
  Datedetails(
      {this.data, this.code, this.msg, this.time, this.usage, this.log_id});

  factory Datedetails.fromJson(Map<String, dynamic> json) {
    return Datedetails(
        data: json['data'] != null ? Data.fromJson(json['data']) : null,
        code: json['code'],
        msg: json['msg'],
        time: json['time'],
        usage: json['usage'],
        log_id: json['log_id']);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    data['time'] = this.time;
    data['usage'] = this.usage;
    data['log_id'] = this.log_id;
    return data;
  }
}

class Data {
  String? date;
  String? monthday;
  int? year;
  String? content;
  int? day;
  String? title;
  int? month;
  String? id;
  String? desc;

  Data(
      {this.date,
      this.monthday,
      this.year,
      this.content,
      this.day,
      this.title,
      this.month,
      this.id,
      this.desc});

  factory Data.fromJson(Map<String, dynamic> json) {
    return Data(
      date: json['date'],
      monthday: json['monthday'],
      year: json['year'],
      content: json['content'],
      day: json['day'],
      title: json['title'],
      month: json['month'],
      id: json['id'],
      desc: json['desc'],
    );
  }
  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['date'] = this.date;
    data['monthday'] = this.monthday;
    data['year'] = this.year;
    data['day'] = this.day;
    data['title'] = this.title;
    data['month'] = this.month;
    data['id'] = this.id;
    data['desc'] = this.desc;
    return data;
  }
}
